package com.bys.properties;

import com.bys.eunm.CodegenFrontTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.Collection;

@ConfigurationProperties(prefix = "huahai.codegen-table")
@Data
@Component
public class CodeGenTableProperties {
    /**
     * 生成的 Java 代码的基础包
     */
    private String basePackage;
    /**
     * 代码生成的前端类型（默认）
     *
     * 枚举 {@link CodegenFrontTypeEnum#getType()}
     */
    private Integer frontType;

    /**
     * 是否生成单元测试
     */
    private Boolean unitTestEnable;
}
